# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test10
# Description:  例25.11
# Author:       ASUS
# Date:         2019/4/8
#-------------------------------------------------------------------------------


import pandas
scientists = pandas.read_csv("scientists.csv")
ages = scientists['Age']
#筛选出Age大于平均值的数据
print(ages[ages > ages.mean()].head(3))
print("--------------------")
print((ages > ages.mean()).head(3))
print("----------------------")
print(type(ages > ages.mean()))
print("------------------------")
#直接指定哪条记录显示，哪条记录不显示
print(ages[[True,True,False,True,False,True,True,False]])

